<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>vue template</title>
  <script src="../assets/js/vue.js"></script>
</head>
<body>
  <h1>vue template</h1>
  <hr>
  <div id="app">
    <!-- 如果Vue构造函数中有template选项，则#app标签内的内容就不渲染了 -->
    {{ message }}
  </div>
  <!-- <template id="temp2">
    <h3>2.template模板</h3>
  </template> -->
  <script type="x-template" id="temp3">
      <h3>3.script模板</h3>
  </script>
  
  <script>
    var vue = new Vue({
      el: '#app',
      data: {
        message: 'vue template'
      },
      // template: `<h3 style="color: red">1.我是选项模板</h3>`
      template: '#temp3'
    })
  </script>
</body>
</html>